﻿<Window x:Class="DupeFilter.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dupefilter="clr-namespace:DupeFilter"
    Title="DupeFilter" Width="640" Height="480" MinWidth="320" MinHeight="240">
    <Window.Resources>
        <DataTemplate x:Key="CheckedCell">
            <StackPanel Orientation="Horizontal">
                <CheckBox />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>

    <DockPanel>
        <GroupBox DockPanel.Dock="Right" Header="Buttons" Margin="4,4,4,4" Width="160">
            <StackPanel Margin="0,0,0,0">
                <Button Height="23" Name="btnFindEmptyFolders" Margin="0,0,0,4" Click="btnFindEmptyFolders_Click">Find Empty Folders</Button>
                <Button Height="23" Margin="0,0,0,4" Name="btnFindDuplicates" Click="btnFindDuplicates_Click">Find Duplicates</Button>
            </StackPanel>
        </GroupBox>
        <DockPanel>
            <dupefilter:DirectoryTextBox DockPanel.Dock="Top" x:Name="dtbSearchPath" Height="23" Margin="4,4,4,4" />
            <ListView Name="lvwEmptyFolders" Margin="4,4,4,4">
                <ListView.View>
                    <GridView>
                        <GridViewColumn CellTemplate="{StaticResource CheckedCell}" Width="30"/>
                        <GridViewColumn Header="Path" Width="140" DisplayMemberBinding="{Binding Path}"   />
                        <GridViewColumn Header="MD5 Hash" Width="140" DisplayMemberBinding="{Binding MD5Hash}"  />
                    </GridView>
                </ListView.View>
            </ListView>
        </DockPanel>
    </DockPanel>
</Window>
